package com.pactera.miyuangroup.vo.convertor;

import com.pactera.miyuangroup.db.entity.LoginUser;
import com.pactera.miyuangroup.db.entity.VehicleInfo;
import com.pactera.miyuangroup.vo.response.web.QueryDeliverymanAdjustRes;
import com.pactera.miyuangroup.vo.response.web.VehicleInfoRes;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import java.util.List;

@Mapper(componentModel = "spring")
public interface VehicleInfoConvert {
    /**
     * 批量数据库转页面对象
     *
     * @param
     * @return
     */

    List<VehicleInfoRes> convert2VehicleInfoRes(List<VehicleInfoRes> VehicleInfoResList);


    @Mappings({
            @Mapping(source = "vehicleInfo.id", target = "id"),
    })
    QueryDeliverymanAdjustRes convert2QueryDeliverymanAdjustRes(VehicleInfo vehicleInfo, LoginUser user);


}
